﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HorrorsOfArkham.Game_Application_Layer
{
    public class XMLResourceStorageHandler
    {
        #region Members

        public static readonly XMLResourceStorageHandler Instance = new XMLResourceStorageHandler();

        #endregion

        #region Initialization

        protected XMLResourceStorageHandler()
        {
            StringResourceStorage.Instance.InitializeDictionaries();
        }

        #endregion

        #region Storing Data

        public bool StoreStringData(Dictionary<string, string> dictionary)
        {
            bool saveComplete = StringResourceStorage.Instance.SaveStringDictionary(dictionary);

            if (saveComplete)
            {
                return true;
            }
            else 
            {
                Console.WriteLine("Problems saving data");
                return false;
            }
        }

        #endregion

    }
}
